package com.abe.bathsystem.entity.serial;


public class DeviceTemperatureEntity {
    //温度
    private float temperature;
    //是否故障
    private boolean isFault;

    public DeviceTemperatureEntity(float temperature) {
        this.temperature = temperature;
        this.isFault = temperature > 100;
    }

    public boolean getIsFault() {
        return isFault;
    }

    public void setIsFault(boolean isFault) {
        this.isFault = isFault;
    }

    public float getTemperature() {
        return temperature;
    }

    public void setTemperature(float temperature) {
        this.temperature = temperature;
    }
}